﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Pages.ascx.cs" Inherits="Member_Tools_Control_Pages" %>
<style type="text/css">
    .txt
    {
        border-bottom: none;
    }
</style>
<h2>
    Danh sách các page trong hệ thống</h2>
<span class="button">
    <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" 
    onclick="btnUpdate_Click" />
    <span></span></span>
<table class="grid" style="margin-top:10px">
    <tr>
        <th width="30px">
        </th>
        <th width="250px">
            Page Name
        </th>
        <th width="250px">
            Module
        </th>
        <th>
            Page Id
        </th>
    </tr>
    <asp:Repeater ID="rep" runat="server">
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# Container.ItemIndex + 1 %>
                    <asp:HiddenField ID="hidId" runat="server" Value='<%# Eval("PageId") %>' />
                </td>
                <td>
                    <asp:TextBox ID="txt" runat="server" CssClass="txt" Width="100%" Text='<%# Eval("PageName") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="txtModule" runat="server" CssClass="txt" Width="100%" Text='<%# Eval("ModCode") %>'></asp:TextBox>
                </td>
                <td>
                    <a href="<%# Eval("PageUrl") %>" target="_blank">
                        <%# Eval("PageId") %></a>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
